﻿<%@ Page Language="vb" Title="Edit Page &lsaquo; Meo Tom's Blog" ValidateRequest="false" MasterPageFile="Admin.Master" AutoEventWireup="false" CodeBehind="PageUpdate.aspx.vb" Inherits="MeoTom.Web.Blog.PageUpdate" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ctph" Runat="Server">

    <div style="float:left;width:100%;">
        <div id="iconPage" class="icon32"><br /></div>
        <h2>Edit Page</h2>
    </div>
    
    <div class="form-wrap" style="float:left;width:71%;margin-right:20px;">
        <div style="display:none;" class="lblError" runat="server" id="lblError"></div>
        <div class="form-field">
            <asp:TextBox ID="txtTitle" Text="" style="width:99%;" CssClass="TitleBlog" runat="server"></asp:TextBox>
        </div>
        <div class="form-field">
            <FCKeditorV2:FCKeditor ID="txtBody" runat="server" ToolbarSet="MyCustoms" 
                BasePath="/Library/Editor/fckeditor/" SkinPath="/Library/Editor/fckeditor/editor/skins/silver/" Height="500px"></FCKeditorV2:FCKeditor>            
        </div>
    </div>
    <div style="float:left;width:25%;">
        <div class="otherBox">
            <div class="headerBox">Publish</div>
            <div class="contentBox">
                <asp:Button ID="btnSave" runat="server" Text="Save Draft" style="float:right;margin-bottom:5px;margin-top:5px;margin-right:6px;" />
                <p id="lblStatus" runat="server"></p>
                <p>Visibility: <span style="font-weight:bold;" id="ArticleVisibility">
                    <asp:Label ID="lblArticleVisiblity" runat="server" Text=""></asp:Label></span> <a href="javascript:void(0);" title="Edit" id="lnkEdit" onclick="javascript:Util.EditArticleVisible('<%= ArticleVisibleContent.ClientID %>');">Edit</a>
                    <span id="ArticleVisibleContent" runat="server" style="display:none;"></span>
                </p>
                <p><img src="/Images/Calendar-scheduleHS.png" width="12" height="12" alt="Publish Date" />
                    
                    &nbsp;<span id="PublishInfo">Publish <b>immediately</b></span> 
                    
                    <a href="javascript:void(0);" title="Edit" id="lnkEditDatePublish" onclick="javascript:Util.EditArticlePublish('<%=ArticlePublishContent.ClientID %>');">Edit</a>
                    <span id="ArticlePublishContent" runat="server" style="display:none;"></span>                        
                </p>
                <div class="major-publishing-actions">
                    <asp:LinkButton ID="lnkDelete" runat="server" OnClientClick="javascript:return confirm('Are you sure ?!\nCancel to stop, OK to delete.');" style="float:left;line-height:23px;text-align:left;width:40px;cursor:pointer;display:block;text-decoration:underline;" onfocus="this.blur();">Delete</asp:LinkButton>
                    <asp:Button ID="btnUpdate" CssClass="submit" style="background-color:#21759B;" runat="server" Text="Publish" />
                    <asp:HiddenField ID="txtTitleNone" runat="server" />
                </div>
            </div>
        </div>
        <div class="otherBox">
            <div class="headerBox">Option</div>
            <div class="contentBox">
                <p>
                    <asp:CheckBox ID="drpCommentEnabled" Checked="true" Text="&nbsp;Is Comments ?" runat="server" />
                </p>
            </div>
        </div>                             
    </div>    
    <script language="javascript" type="text/javascript">
        Menus.DisplaySubMenu('menu-4-2');
        Menus.ChangeSelectedMenu('menu-4-2');
    </script>
</asp:Content>